/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.spider.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 爬虫日志Entity
 * @author hongye
 * @version 2017-04-12
 */
public class SpiderLog extends DataEntity<SpiderLog> {
	
	private static final long serialVersionUID = 1L;
	private String spiderId;		// spider_id
	private String level;		// level
	private String content;		// content
	
	public SpiderLog(String spiderId, String level, String content) {
		super();
		this.spiderId = spiderId;
		this.level = level;
		this.content = content;
	}

	public SpiderLog() {
		super();
	}

	public SpiderLog(String id){
		super(id);
	}

	@Length(min=1, max=100, message="spider_id长度必须介于 1 和 100 之间")
	public String getSpiderId() {
		return spiderId;
	}

	public void setSpiderId(String spiderId) {
		this.spiderId = spiderId;
	}
	
	@Length(min=1, max=10, message="level长度必须介于 1 和 10 之间")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}